Semiconductor device

ABSTRACT

A semiconductor device includes at least three circuit substrates laid one upon another. The device further includes first circuit elements mounted, respectively, on at least two of the three circuit substrates. It also includes a second circuit element mounted on one of the three circuit substrates and configured to change connection between the first circuit elements.

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2002-019131, filed Jan. 28, 2002, the entire contents of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] This invention relates to a semiconductor device composed of a plurality of circuit substrates stacked one on top of another, each circuit substrate provided with at least one circuit element. More particularly, this invention relates to a different-types-embedded semiconductor package (SBM (System Block Module)), such as an SiP (System in a Package) formed by squeezing a logic circuit and different types of semiconductor parts, including memory elements and analog elements, into a package.

[0004] 2. Description of the Related Art

[0005] In recent years, an SBM composed of different types of semiconductor parts stacked one on top of another in a single package has been developed. The SBM has attracted attention because it is available in a smaller-sized package than an existing MCM (multi-chip module) composed of a plurality of chips arranged two-dimensionally.

[0006]FIG. 6 shows an example of the configuration of a conventional SBM. In the figure, the configuration of an SBM is shown two-dimensionally, using a case where a memory controller circuit and a memory element are combined. As shown in FIG. 6, in the SBM, a first circuit substrate layer 1 and a second circuit substrate layer 2 are arranged three-dimensionally. Then, the peripheries of the first circuit substrate layer 1 and second circuit substrate layer 2 are sealed with a package 3. In this example, the first circuit substrate layer 1 has a memory controller circuit on it. The second circuit substrate layer 2 has a memory clement on it.

[0007] In the SBM, existing finished semiconductor parts, such as memory controller circuits or memory elements, are mounted as they are on individual circuit substrates. Then, circuit substrates on each of which a semiconductor part is mounted are stacked one on top of another. This makes it possible to squeeze the substrates into a smaller-sized package as described above. As compared with an ordinary memory-embedded package, the SBM can be developed in a shorter time, which helps reduce the cost. That is, in the case of existing memory-embedded packages, each time a product is developed, a logic circuit and other related circuits have to be designed. Therefore, the commercialization of the product requires a very long time and a lot of funds.

[0008] The SBM with the above configuration has the advantage of being capable of carrying out a comprehensive test of the entire system easily (in the normal operation test mode). However, it is difficult for the SBM to test the memory element independently. The reason is that, in a conventional SBM, the input and output signals of the memory controller circuit are connected with the input and output signals of the memory element in a complicated manner. Therefore, it is difficult to test the memory element directly without a help of the memory controller circuit.

[0009] A method of testing the memory element independently is as follows. For example, a special input pin connected to the memory element is provided separately from the input pin used for inputting an input signal to the SBM. Use of the special input pin different from the input pin connected to the memory controller circuit enables the input signal to be inputted directly to the memory element (see FIG. 6). This makes it possible to test only the memory element easily (a conventional single-unit test mode). However, when special input pins for testing memory elements independently are provided, the number of input and output pins of the SBM increases. This causes the problem of increasing the package size (impairing the advantage of the small package size).

BRIEF SUMMARY OF THE INVENTION

[0010] According to an aspect of the present invention, there is provided a semiconductor device comprising: at least three circuit substrates laid one upon another; first circuit elements mounted, respectively, on at least two of the at least three circuit substrates; and a second circuit element mounted on one of the at least three circuit substrates and configured to change connection between the first circuit elements.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING

[0011]FIG. 1A is a sectional view showing a configuration of an SBM according to a first embodiment of the present invention, and FIG. 1B is a block diagram showing the configuration of the SBM of FIG. 1A two-dimensionally;

[0012]FIG. 2 shows a configuration of the input changeover circuit shown in FIGS. 1A and 1B;

[0013]FIG. 3A is a block diagram showing two-dimensionally the configuration of an SBM according to a second embodiment of the present invention and FIG. 3B is a block diagram showing two-dimensionally the configuration of a conventional SBM in comparison with the SBM shown in FIG. 3A;

[0014]FIG. 4 shows a configuration of the test facilitating circuit shown in FIG. 3A;

[0015]FIG. 5 is a block diagram showing the configuration of the SBM of FIG. 3A more concretely; and

[0016]FIG. 6 is a block diagram showing another configuration of a conventional SBM two-dimensionally.

DETAILED DESCRIPTION OF THE INVENTION

[0017] Hereinafter, referring to the accompanying drawings, embodiments of the present invention will be explained.

[0018] (First Embodiment)

[0019]FIGS. 1A and 1B show a schematic configuration of an SBM according to a first embodiment of the present invention. A case where a memory controller circuit and a memory clement are combined will be explained below. FIG. 1A is a sectional view of an SBM. FIG. 1B shows the arrangement of the individual layers in the SBM two-dimensionally. As shown in FIG. 1A, in the SBM, a first circuit substrate layer (a first circuit substrate) 12, a second circuit substrate layer (a third circuit substrate) 22 serving as a facilitation layer, and a third circuit substrate layer (a second circuit substrate) 32 are arranged three-dimensionally. Then, the peripheries of the first circuit substrate layer 12, second circuit substrate layer 22, and third circuit substrate layer 32 are sealed with a package 41. In the first embodiment, the first circuit substrate layer 12 has a memory controller circuit (a first circuit element) 11 on it. The second circuit substrate layer 22 has an input changeover circuit 21 on it. The third circuit substrate layer 32 has a memory element (a second circuit element) 31 on it. The memory controller circuit 11 and the memory element 31, which are semiconductor parts of different types, are both finished products.

[0020] An input and output terminal layer 43 is provided at the lowest layer of the package 41. The input and output terminal layer 43 has a large number of input and output pins 42. The SBM exchanges the input and output signals with the external device via the input and output pins 42 on the input and output terminal layer 43. The individual layers 12, 22, 32, 43 are connected electrically to each other in a suitable manner by means of interconnection lines 44 and contacts 45 formed in via holes or through holes.

[0021] The second circuit substrate layer 22 is composed of, for example, PTP (Paper Thin Package). The input changeover circuit 21 on the second circuit substrate layer 22 changes the input to the memory element 31 on the basis of an input changeover circuit control signal inputted from the external device. For example, in the normal operation mode/normal operation test mode, the input changeover circuit 21 supplies the output signal of the memory controller circuit 11 to the memory element 31. In the single-unit test mode, the input changeover circuit 21 supplies an independent single test signal (or direct input signal) from an LSI tester (or test circuit) (not shown) external the SBM to the memory element 31. That is, the input signal supplied to the input and output pins 42 are inputted to the memory controller circuit 11 in the normal operation mode/normal operation test mode. On the other hand, when the input signals supplied to the input and output pins 42 are independent test signals (in the single-unit test mode), they are inputted directly to the memory element 31 without passing through the memory controller circuit 11.

[0022]FIG. 2 shows an example of the configuration of the input changeover circuit 21 used in the SBM. In this example, the input changeover circuit 21 is composed of two transfer gates 21 a, 21 b and an inverter circuit 21 c. For example, when the input changeover circuit control signal is at the low level, the transfer gate 21 a is in the on state and the transfer gate 21 b is in the off state. This causes the input signals supplied to the input output pins 42 to be inputted to the memory controller circuit 11 (in the normal operation mode/normal operation test mode). As a result, a test of the memory element 31 (or a comprehensive test of the entire system) can be carried out under the control of the memory controller circuit 11. On the other hand, when the input changeover circuit control signal is at the high level, the transfer gate 21 a is in the off state and transfer gate 21 b is in the on state. This causes the input signals supplied to the input and output pins 42 to be inputted directly to the memory element 31 (in the single-unit test mode). As a result, it is possible to test the memory element 31 independently.

[0023] With this configuration, the memory element 31 can be tested independently. At that time, there is no need to increase the number of input and output pins 42 considerably. Since only the memory element 31 is tested, it is not necessary to provide a special test circuit in the SBM. That is, after finished products are stacked one on top of another and squeezed into a package, externally supplied test signal are supplied directly from the input and output pins 42, which makes it easy to test the memory element 31. At that time, there is no need to make modifications to the memory controller circuit 11 and memory element 31, which are semiconductor parts of different types. Therefore, not only can the development time (TAT) of the SBM be shortened, but also defects in the semiconductor parts can be found very easily.

[0024] Furthermore, the input changeover circuit 21 provided in the interface of the memory element 31 is composed of a PTP and added in the form of a circuit substrate layer. Therefore, although the number of stacked layers increases by one (in this example, the number of stacked layers increases from 2 to 3), an increase in the number of input and output pins is minimized. As a result, the package size hardly increases and therefore the mounting area hardly increases.

[0025] (Second Embodiment)

[0026]FIGS. 3A and 3B show the configuration of an SBM according to a second embodiment of the present invention in comparison with a conventional SBM. Explanation will be given, using a case where one logic circuit and two memory elements are combined. FIG. 3A shows the arrangement of the individual layers in the SBM of the second embodiment two-dimensionally. FIG. 3B shows the arrangement of the individual layers in a conventional SBM two-dimensionally. As shown in FIG. 3A, in the SBM of the second embodiment, a first circuit substrate layer (a fourth circuit substrate) 102, a second circuit substrate layer (a first circuit substrate) 202, a third circuit substrate layer (a second circuit substrate) 302, and a fourth circuit substrate layer (a third circuit substrate) 402 are arranged three-dimensionally. Then, the peripheries of the first circuit substrate layer 102, second circuit substrate layer 202, third circuit substrate layer 302, and fourth circuit substrate layer 402 are sealed with a package 501. In the second embodiment, the first circuit substrate layer 102 has a test facilitating circuit (or a changeover circuit) 101 on it. The second circuit substrate layer 202 has a logic circuit (or a first circuit element) 201 on it. The third circuit substrate layer 302 has a first memory element (or a second circuit element) 301 on it. The fourth circuit substrate layer 402 has a second memory element (or a third circuit element) 401 on it. The logic circuit 201 and the first and second memory elements 301, 401, which are semiconductor parts of different types, are each finished products.

[0027] An input and output terminal layer (not shown) is provided at the lowest layer of the package 501. The input and output terminal layer has a large number of input and output pins. The SBM exchanges external input and output signals with the external device via the input and output pins on the input and output terminal layer. The individual circuit substrate layers 102, 202, 302, 402 are connected electrically to each other in a suitable manner by interconnection lines 44 (not shown) and contacts 45 (not shown) formed in via holes or through holes.

[0028] As described above, the SBM of the second embodiment differs from the conventional SBM of FIG. 3B in the following points. In the SBM of the second embodiment, the circuit substrate layer 102 provided with the test facilitating circuit 101 is arranged at the lowest layer (or the first layer). Furthermore, the SBM of the second embodiment is so configured that the individual semiconductor parts (in the embodiment, the logic circuit 201 and the first and second memory elements 301, 401) are connected to each other via the test facilitating circuit 101. With this configuration, in the SBM of the second embodiment, the signals are always exchanged between the external device and the individual semiconductor parts via the test facilitating circuit 101.

[0029] Here, the circuit substrate layer 102 serving as the facilitation layer is composed of, for example, a PTP. The test facilitating circuit 101 on the circuit substrate layer 102 is composed of an input changeover circuit 101A as shown in FIG. 3A. The test facilitating circuit 101 is composed of a scan circuit 101B for checking the input changeover circuit 101A.

[0030]FIG. 4 schematically shows the configuration of the test facilitating circuit 101 used in the SBM. Explanation will be given, taking the single-unit test mode as an example. In the singe-unit test mode, the logic circuit 201 is tested independently. In this example, the test facilitating circuit 101 has three input changeover circuits 101A. Each of the input changeover circuits 101A is for controlling the exchange of signals between the external device and the logic circuit 210. In addition, each of the input changeover circuits 101A is for selectively controlling the exchange of signals between the external device and the first and second memory elements 301, 401. Specifically, the first input changeover circuit 101A has switch circuits 101A-1 a, 101A-2 a, 101A-3 a. The input and output of signals of the logic circuit 201 are controlled by the turning on and off of the switch circuit 101A-1 a. The input and output of signals of the first memory element 301 are controlled by the turning on and off of the switch circuits 101A-1 a, 101A-2 a. The input and output of signals of the second memory element 401 are controlled by the turning on and off of the switch circuits 101A-1 a, 101A-3 a. The second input changeover circuit 101A has switch circuits 1 b, 101A-2 b. The input and output of signals of the logic circuit 201 are controlled by the turning on and off of the switch circuit 101A-1 b. The input and output of signals of the first memory 301 are controlled by the turning on and off of the switch circuits 101A-1 b, 101A-2 b. The third input changeover circuit 101A has switch circuits 101A-1 c, 101A-2 c. The input and output of signals of the logic circuit 201 are controlled by the turning on and off of the switch circuit 101A-1 c. The input and output of signals of the second memory 401 are controlled by the turning on and off of the switch circuits 101A-1 c, 101A-2 c. The input and output of signals at each input changeover circuit 101A are controlled on the basis of an externally inputted test select signal (control signal).

[0031] Each of the input changeover circuits 101A is composed of, for example, a plurality of flip-flop circuits (hereinafter, abbreviated as F/F circuits) 101 a corresponding to the individual switch circuits as shown in FIG. 5. On the other hand, the scan circuit 101B is configured by connecting all the F/F circuits 101 a (in the scan operation mode). The scan circuit 101B checks the individual changeover circuits 101A on the basis of the output of the SCAN output signal in response to the SCAN input signal. In the scan operation, the exchange of external input and output signals between the test facilitating circuit 101 and the external device are stopped.

[0032] Here, the flow of the external input and output signals in each test mode will be explained. For example, in the normal operation test mode, the input changeover circuits 101A in the test facilitating circuit 101 connect the individual semiconductor parts to one another electrically. That is, when a comprehensive test of the entire system is carried out, the logic circuit 201 and the second memory elements 301, 401 are connected electrically to each other via the test facilitating circuit 101. Then, the exchange of external input and output signals is made between the external device and the semiconductor parts on the individual layers 202, 302, 402 by way of the test facilitating circuit 101 (101→201, 301, 401→101). The external input and outputs are test input signals from an external LSI tester and test output signals corresponding to the test input signals.

[0033] On the other hand, in the single-unit test mode, for example, when the logic circuit 201 is tested independently in the single-unit test mode, only the logic circuit 210 is connected electrically to the test facilitating circuit 101 as shown in FIGS. 4 and 5 (with the first and second memory elements 301, 401 not connected). Then, the exchange of test input signal and test output signals is made only between the external device and the logic circuit 201. on the circuit substrate layer 202 (101→201→101).

[0034] Furthermore, when the first memory element 301 is tested independently in the single-unit test mode, only the first memory element 301 is connected electrically to the test facilitating circuit 101 (with the logic circuit 201 and second memory element 401 not connected). The exchange of test input signals and test output signals is made only between the external device and the first memory element 301 on the circuit substrate layer 302 (101→301→101).

[0035] In addition, when the second memory element 401 is tested independently in the single-unit test mode, only the second memory element 401 is connected electrically to the test facilitating circuit 101 (with the logic circuit 201 and the first memory element 301 not connected). Then, the exchange of test input signals and test output signals is made only between the external device and the second memory element 401 on the circuit substrate layer 402 (101→401→101).

[0036] In the second embodiment, the test facilitating circuit 101 has been configured by providing as many input changeover circuits 101A as the number of signal lines for external input and output signals. The test facilitating circuit 101 may be configured in other ways. For instance, as in a case where a plurality of semiconductor parts are mounted on a single circuit substrate layer, the test facilitating circuit 101 may be so configured that input changeover circuits 101A are provided according to the number of semiconductor parts connected to the test facilitating circuit 101.

[0037] Next, the operation of the SBM with the above configuration will be explained by reference to FIG. 5. The normal operation mode, the normal operation test mode, the single-unit test mode, and the scan operation mode will be described.

[0038] In the normal operation mode, for example, an externally supplied test select signal is not allowed to be inputted. This causes the test facilitating circuit 101 to be set in the normal operation mode. Then, each F/F circuit 101 a in the input changeover circuit 101A is set so as to enable a normal SBM operation. In this case, the logic circuit 210 and the first and second memory elements 301, 401 are connected electrically to the test facilitating circuit 101. As a result, the external input and output signals are exchanged between the external device and the logic circuit 201 and first and second memory elements 301, 401 by way of the test facilitating circuit 101.

[0039] In the normal operation test mode, for example, an externally supplied test select signal for a comprehensive test of the entire system is inputted. This sets the test facilitating circuit 101 in the normal operation test mode. Then, to carry out a comprehensive test of the entire system, each F/F circuit 101 a in the input changeover circuit 101A is set. In this case, each F/F circuit 101 a is connected in the same manner as in the normal operation mode. That is, the logic circuit 201 and the first and second memory elements 301, 401 are connected electrically to the test facilitating circuit 101. As a result, a comprehensive test of the entire system is carried out between the logic circuit 201 and the first and second memory elements 301, 401 according to the externally supplied test input signals via the test facilitating circuit 101. The test output signals, the result of the test, are outputted to the external device via the test facilitating circuit 101.

[0040] In contrast, in the single-unit test mode, for example, an externally supplied test select signal for a single unit test is inputted. As a result, the test facilitating circuit 101 is set in the singe-unit test mode. In this case, as described above, each F/F circuit 101 a in the input changeover circuit 101A is set, depending on which one of semiconductor parts is subjected to a single unit test. That is, when the logic circuit 210 is tested independently, each F/F circuit 101 a is connected in such a manner that only the logic circuit 201 is connected to the test facilitating circuit 101 as shown in FIGS. 4 and 5. In addition, when the first memory element 301 is tested independently, each F/F circuit 101 a is connected in such a manner that only the first memory element 301 is connected to the test facilitating circuit 101. Furthermore, when the second memory element 401 is tested independently, each F/F circuit 101 a is connected in such a manner that only the second memory element 401 is connected to the test facilitating circuit 101. In this way, any one of the logic circuit 201 and the first and second memory elements 301, 401 is connected electrically to the test facilitating circuit 101. This enables the semiconductor part to be tested according to the input of externally supplied test input signals. Each test output signal, the result of the test, is outputted to the external device via the test facilitating circuit 101.

[0041] On the other hand, in the scan operation mode, for example, a test select signal for a scan operation is externally inputted. This sets the test facilitating circuit 101 in the scan operation mode. Then, to check the input changeover circuit 101A, the individual F/F circuits 101 a are connected in such a manner that they constitute the scan circuit 101B. That is, the individual F/F circuits 101 a are connected in a row. In addition, the logic circuit 201 and the first and second memory elements 301, 401 are not connected to the test facilitating circuit 101. Furthermore, the exchange of external input and output signals between the test facilitating circuit 101 and the external device is stopped. In this way, the operation of the input changeover circuit 101A is checked (or verified) on the basis of the SCAN output signal outputted from the scan circuit 101B to the external device in response to the input of the SCAN input signal from the external device to the scan circuit 101B.

[0042] With this configuration, just providing the test facilitating circuit 101 enables the logic circuit 201 and the first and second memory elements 301, 401 to be tested independently without increasing the number of input and output pins considerably or providing a special test circuit inside the package. That is, after finished semiconductor parts of different types are stacked as they are one on top of another and squeezed into a single package, test input signals can be inputted directly from the external device to test the individual semiconductor parts. At that time, there is no need of making modifications to the individual semiconductor parts for single-unit testing. Therefore, not only can the TAT for an SBM on which semiconductor parts of different types are mounted be shortened, but also defects in the semiconductor parts can be found very easily. Moreover, the test facilitating circuit is added as a circuit substrate layer in the form of PTP. Therefore, although the number of stacked layers increases, an increase in the number of input and output pins is minimized. As a result, the package size hardly increases and therefore the mounting area hardly increases.

[0043] As described above, the external test signal can be inputted directly to the individual semiconductor parts. This makes it easy to test the individual semiconductor parts independently without providing a special input pin for each semiconductor part or a special test circuit for each individual test. Therefore, although not in the normal operation test, it is possible to test or analyze the semiconductor parts independently without having an adverse effect on the mounting area.

[0044] In the first and second embodiments, one semiconductor part (or circuit element) has been mounted on the circuit substrate of each layer. The present invention is not limited to this.

[0045] In the first embodiment, the circuit substrate layer 22 serving as a facilitation layer on which the input changeover circuit 21 is mounted has been set as the second layer. In the second embodiment, the circuit substrate layer 102 serving as a facilitation layer on which the test facilitating circuit 101 is mounted has been set as the first layer. However, the present invention is not restricted to these arrangements.

[0046] Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents. 

What is claimed is:
 1. A semiconductor device comprising: at least three circuit substrates laid one upon another; first circuit elements mounted, respectively, on at least two of said at least three circuit substrates; and a second circuit element mounted on one of said at least three circuit substrates and configured to change connection between the first circuit elements.
 2. The semiconductor device according to claim 1, wherein said one of at least three circuit substrates is a facilitation layer to facilitate a test of each of the first circuit elements.
 3. The semiconductor device according to claim 1, wherein the second circuit element changes an input to any one of the first circuit elements in accordance with a control signal supplied from an external device.
 4. The semiconductor device according to claim 3, wherein the second circuit element supplies an input signal supplied from an external device, directly to any one of the first circuit elements, in accordance with the control signal supplied from the external device.
 5. The semiconductor device according to claim 4, wherein the input signal is a test signal to test any one of the first circuit elements.
 6. The semiconductor device according to claim 1, wherein the first circuit elements are semiconductor parts of existing types.
 7. The semiconductor device according to claim 1, wherein the first circuit elements include nonvolatile semiconductor memory elements, volatile semiconductor memory elements, and control circuits comprising these elements.
 8. The semiconductor device according to claim 1, wherein the second circuit element has a plurality of flip-flop circuits, and the plurality of flip-flop circuits are connected to constitute a scan circuit.
 9. The semiconductor device according to claim 1, wherein said at least three circuit substrates are provided in the form of a single package.
 10. A semiconductor device comprising: a first circuit substrate; a first circuit element which is mounted on the first circuit substrate to receive an input signal from an external device; a second circuit substrate provided on the first circuit substrate; a second circuit element which is mounted on the second circuit substrate, connected to the first circuit element and different in type from the first circuit element; a third circuit substrate provided on the second circuit substrate; and a changeover circuit which is mounted on the third circuit substrate and changes the connection of the second circuit element and the first circuit element to the connection of the second circuit element and an external device, wherein, in a first mode, a signal output from the first circuit element is input to the second circuit element, and in a second mode, a signal output from the external device is input to the second circuit element.
 11. The semiconductor device according to claim 10, wherein the third circuit substrate is a facilitation layer to facilitate a test of the second circuit element.
 12. The semiconductor device according to claim 10, wherein the changeover circuit is controlled by a control signal supplied from an external device.
 13. The semiconductor device according to claim 10, wherein the first circuit element is a memory controller circuit and the second circuit element is a memory element controlled by the memory controller circuit, and the changeover circuit changes an input to the memory element to input a test signal directly to the memory element, thereby to test the memory element.
 14. The semiconductor device according to claim 10, wherein the first, second and third circuit substrates, the first and second circuit elements and the changeover circuit are provided in the form of a single package.
 15. A semiconductor device comprising: a first circuit substrate; a first circuit element which is mounted on the first circuit substrate to receive an input signal from an external device; a second circuit substrate provided on the first circuit substrate; a second circuit element which is mounted on the second circuit substrate to receive an input signal from the external device; a third circuit substrate provided on the second circuit substrate; a third circuit element which is mounted on the third circuit substrate to receive an input signal from the external device; a fourth circuit substrate provided on the third circuit substrate; and a changeover circuit which is mounted on the fourth circuit substrate, connects the first, second and third circuit elements, and changes the connection of the first, second and third circuit elements and the connection of the first, second and third circuit elements to the external device, wherein at least one of the first, second and third circuit elements is different in type from the other circuit elements.
 16. The semiconductor device according to claim 15, wherein the fourth circuit substrate is a facilitation layer to facilitate a test of the first, second and third circuit elements.
 17. The semiconductor device according to claim 15, wherein the changeover circuit is controlled by a control signal supplied from an external device.
 18. The semiconductor device according to claim 15, wherein the first circuit element is a logic circuit, the second circuit element is a first memory element, the third circuit element is a second memory element, and the changeover circuit changes inputs to the logic circuit, first memory element and second memory element to input test signals directly to the logic circuit, first memory element and second memory element, respectively.
 19. The semiconductor device according to claim 18, wherein the changeover circuit has a plurality of flip-flop circuits, and the plurality of flip-flop circuits are connected to constitute a scan circuit.
 20. The semiconductor device according to claim 15, wherein the first, second, third and fourth circuit substrates, the first, second and third circuit elements and the changeover circuit are provided in the form of a single package. 